fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 15 Aug 2021 18:32:57 +0000 (19:32 +0100)
commitb0c555701eabec23c33c3ec75bb23d9ba66d1782
tree0522b7d45a98ef4a94e8947d1b2919e37486ac88
parentba816e79b029c27698ee980b0749725c770959b9
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff
src/gui/text/qtextlayout.cpp